<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:spring="http://www.springframework.org/tags"
                template="../../../layout/Template.xhtml">

    <ui:define name="menu">
        <ui:include src="${user.menu}"/>
    </ui:define>

    <ui:define name="title">
        <h:outputText value="#{resourceBundle.deleteCourseWelcom}"/>
    </ui:define>

    <ui:define name="content">
        <ui:fragment id="deleteUnitFragment">
            <h:form id="deleteUnitForm">
                <h:outputText value="#{bundle.deleteMessageInformation} '#{flowScope.currentCourse.name}' ?"/>

                <rich:panel>
                    <f:facet name="header">
                        <h:outputText value="#{resourceBundle.deleteCourseOverview}"/>
                    </f:facet>
                    <ul>
                        <li>
                            <h:outputText value="#{flowScope.currentCourse.name}"/>
                        </li>
                        <li>
                            <h:outputText value="#{flowScope.currentCourse.nbMatter}"/>
                        </li>
                    </ul>
                </rich:panel>

                <h:panelGrid columns="2">
                    <a4j:commandButton id="deleteUnitButtonDelete" value="#{bundle.Yes}" action="delete"/>
                    <a4j:commandButton id="deleteUnitButtonCancel" value="#{bundle.No}" action="cancel"/>
                </h:panelGrid>
            </h:form>
        </ui:fragment>
    </ui:define>

</ui:composition>